package com.qfdu;

import com.qfdu.dao.UserDao;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;


@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = "classpath:bean.xml")
public class Demo {

    @Autowired
    private UserDao userDao;
    @Test
    public void demo(){
        userDao.findAll();  //执行当前方法之前去执行myaspect的指定方法
    }
}
